#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QObject>
#include<QThread>

class MyThread : public QObject
{
    Q_OBJECT
public:
    explicit MyThread(QObject *parent = nullptr);

    //线程处理函数
    void myTimeout();
     void setFlag(bool flag = true);//为私有变量isStop定义公用接口

signals:
    void mySignal();

public slots:
private:
    bool isStop;
};

#endif // MYTHREAD_H
